//
// Created by mazaiting on 2024/4/29.
//

#include <cstdio>

int S(int n) {
    if (n <= 0) return 0;
    else return S(n - 1) + n;
}

int main() {
    printf("%d\n", S(5));
    return 0;
}
